home *** CD-ROM | disk | FTP | other *** search
- Path: news.ust.hk!cs_alaw
- From: cs_alaw@ug.cs.ust.hk (Law Look Tend)
- Newsgroups: comp.lang.c++
- Subject: Help!! Visual C++ Linking
- Date: 8 Jan 1996 16:12:04 GMT
- Organization: The Hong Kong University of Science and Technology
- Message-ID: <4crfok$fqa@news.ust.hk>
- NNTP-Posting-Host: csl3su12.cs.ust.hk
- X-Newsreader: TIN [version 1.2 PL2]
-
- I am using Visual C++ 2.0, and I try to compile a simple .cpp program, which
- I wrote in Visual C++ 1.0 and can compile and run perfectly. But the
- following message appear when build .exe file:
-
-
- Incrementally linking...
- LINK : performing full link
- LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol "_main"
- CLOCK.exe : error LNK1120: 1 unresolved externals
- Error executing link.exe.
- Creating browse info file...
- CLOCK.exe - 2 error(s), 0 warning(s)
-
-
- where "CLOCK.cpp" is my original file.
- Could anyone tell me what to do to fix such problem??
-
- Thanks a lot.
-
-
- --
- cs_alaw@ug.cs.ust.hk #
- ----------------------- # # # # ##### #### # # # #
- Hong Kong University of # # ## # # # # ## # # #
- Science and Technology # # # # # # # # # # # #
- ---------------------- ####### # # # # # # # # # #
- # # # ## # # # # ## #
- # # # # # #### # # #
-
-